cmake_minimum_required(VERSION 3.12)
project(Triangular_arbitrage)

# 指定 C++ 标准版本
set(CMAKE_CXX_STANDARD 17)

# 添加头文件搜索路径
include_directories(${CMAKE_SOURCE_DIR}/include)

# 添加库文件搜索路径
link_directories(${CMAKE_SOURCE_DIR}/lib)


add_executable(run
${CMAKE_CURRENT_SOURCE_DIR}/src/main.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/BinanceData.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/BinanceTrade.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/BinanceAccount.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/BinanceRestApi.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/BinanceTriangle.cpp
)
target_link_libraries(run fmt fmtlog-shared pthread curl ssl crypto)


add_executable(test
${CMAKE_CURRENT_SOURCE_DIR}/src/test.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/BinanceRestApi.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/BinanceTrade.cpp
)
target_link_libraries(test fmt fmtlog-shared pthread curl ssl crypto)


